//
//  PPAlbumSortCell.m
//  pickpic
//
//  Created by 胡文广 on 2017/5/20.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import "PPAlbumSortCell.h"
#import "PPAlbumContentViewDataSource.h"
@implementation PPAlbumSortCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setDataSource:(PPAlbumContentViewDataSource *)dataSource {
    _dataSource = dataSource;
    
    switch(dataSource.order.integerValue) {
        case PPAlbumOrderDesc: {
            self.titleLabel.text = kOrderAsc;
            break;
        }
            
        default: {
            self.titleLabel.text = kOrderDesc;
            break;
        }
    }
}

@end
